home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / README.ibm-shlib < prev    next >
Encoding:
Text File  |  1998-08-12  |  2.2 KB  |  71 lines

  1. IBM users wanting a GLUT shared library,
  2.  
  3. I can't verify or maintain this information, but it could be useful to
  4. someone on an IBM wanting to make shared libraries.  I pass this
  5. information on in case it is helpful.
  6.  
  7. In theory, the better approach would be to use the imake rules for
  8. building shared libraries.
  9.  
  10. (I'm not too interestested in maitaining a shared library for GLUT since
  11. the GLUT code is fairly small and portably maintaining shared libraries
  12. for the wide variety of machines GLUT can run on would be a royal pain.)
  13.  
  14. - Mark
  15.  
  16. From gaitat@innerdoor.austin.ibm.com  Thu Jul 20 08:57:58 1995
  17. Message-Id: <9507201557.AA20345@innerdoor.austin.ibm.com>
  18. To: mjk@sgi.sgi.com
  19. Subject: shared libglut.a
  20. Date: Thu, 20 Jul 95 10:57:49 -0600
  21. From: Athanasios Gaitatzes <gaitat@innerdoor.austin.ibm.com>
  22.  
  23.  
  24. For the IBM platform I have made some changes to Glut.cf and lib/glut/Imakefile
  25. in order to get a shared libglut.a so that the executables for the tests
  26. and examples are not very big.
  27. Here are the changes:
  28. ---------------------
  29. diff Glut.cf*
  30. 18d15
  31. < EXTRA_INCLUDES = -DAIXV3 -I$(TOP)/../include -I$(TOP)
  32. 21,22d17
  33. < ARFLAGS = crlo
  34. < RANLIB = true
  35. 24d18
  36. < OPENGL = $(TOP)/../lib/libMesaGL.a
  37. 26d19
  38. < GLU = $(TOP)/../lib/libMesaGLU.a
  39. ---------------------
  40. diff lib/glut/Imakefile*
  41. 31,40c31
  42. < all:: libglut.a
  43. < libglut.a: $(OBJS)
  44. <       rm -f libglut.a libglut.exp shrglut.o
  45. <       echo "#! libglut.a" > libglut.exp
  46. <       echo "noentry" >> libglut.exp
  47. <       create_exp $(OBJS) >> libglut.exp
  48. <       $(CC) -bM:SRE -o shrglut.o $(OBJS) -L../../../lib -lMesaGL -lMesaGLU
  49. -lX
  50. mu -lXi -lXext -lX11 -lm -lc -bE:libglut.exp -enoentry
  51. <       ar $(ARFLAGS) $@ shrglut.o
  52. <       $(RANLIB) $@
  53. ---
  54. > NormalLibraryTarget(glut,$(OBJS))
  55.  
  56. and you also need a create_exp script somewhere in your path:
  57. #!/bin/csh
  58. /usr/ucb/nm $* | awk '/ [BD] /{print $3}' | sort | uniq
  59.  
  60. Athanasios G. Gaitatzes (Saki)
  61. internet: gaitat@vnet.ibm.com   | http://www.cs.purdue.edu/homes/mgg/saki.html
  62. internal: gaitat@austin.ibm.com | http://w3.austin.ibm.com/~gaitat
  63. These statements and/or opinions are not necessarily those of IBM
  64.  
  65.    __    ()  ,
  66.   /  )   /`-'|       _/_     _/_
  67.  /--/   /   / __.  o /  __.  /  __.  _  _
  68. /  ( o /__-<_(_/|_<_<__(_/|_<__/  |_</_/_)_
  69.                                  (|
  70.